package com.ruoyi.pos.domain;

import java.math.BigDecimal;
import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * reject_order对象 _reject_order
 *
 * @author wzh
 * @date 2021-05-21
 */
public class RejectOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id标识 */
    private Long id;

    /** 退货订单id */
    @Excel(name = "退货订单id")
    private Long orderId;

    /** 退货时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "退货时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date rejectTime;

    /** 退款金额 */
    @Excel(name = "退款金额")
    private BigDecimal rejectAmount;

    /** 操作员id */
    @Excel(name = "操作员id")
    private Long opid;

    /** 商店id */
    @Excel(name = "商店id")
    private Long shopid;

    /** 退货信息 */
    private List<RejectItem> rejectItemList;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setOrderId(Long orderId)
    {
        this.orderId = orderId;
    }

    public Long getOrderId()
    {
        return orderId;
    }
    public void setRejectTime(Date rejectTime)
    {
        this.rejectTime = rejectTime;
    }

    public Date getRejectTime()
    {
        return rejectTime;
    }
    public void setRejectAmount(BigDecimal rejectAmount)
    {
        this.rejectAmount = rejectAmount;
    }

    public BigDecimal getRejectAmount()
    {
        return rejectAmount;
    }
    public void setOpid(Long opid)
    {
        this.opid = opid;
    }

    public Long getOpid()
    {
        return opid;
    }
    public void setShopid(Long shopid)
    {
        this.shopid = shopid;
    }

    public Long getShopid()
    {
        return shopid;
    }

    public List<RejectItem> getRejectItemList()
    {
        return rejectItemList;
    }

    public void setRejectItemList(List<RejectItem> rejectItemList)
    {
        this.rejectItemList = rejectItemList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("orderId", getOrderId())
                .append("rejectTime", getRejectTime())
                .append("rejectAmount", getRejectAmount())
                .append("opid", getOpid())
                .append("shopid", getShopid())
                .append("rejectItemList", getRejectItemList())
                .toString();
    }
}